package com.od.service.serviceImpl;

import com.od.entity.Project;
import com.od.mapper.ProjectMapper;
import com.od.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {

    @Autowired
    private ProjectMapper projectMapper;
    @Override
    public List<Project> getProjectById(int projectResume) {
        return projectMapper.selectProjectById(projectResume);
    }

    @Override
    public int addProject(Project project) {
        return projectMapper.insertProject(project);
    }

    @Override
    public int updateProjectById(Project project) {
        return projectMapper.updateProjectById(project);
    }

    @Override
    public int deleteProjectById(int projectId) {
        return projectMapper.deleteProjectById(projectId);
    }
}
